/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.ban.ycl.ybk.e2p.yb.tools;

import java.util.Random;

/**
 *
 * @author Administrator
 */
public class NewClass {

    public static void main(String[] args) {

        Random random = new Random();
        int a = random.nextInt(10);
        System.out.println(a);

        int dd = 3;
        int random1 = (int) (Math.random() * dd);
        System.out.println(random1);
    }
}
